package ore.example.pokemoninfo;

import ore.example.pokemoninfo.GUI.PokemonUnlockGUI;
import ore.example.pokemoninfo.command.Tradeinfo;
import ore.example.pokemoninfo.listener.PokemonInventoryListener;
import org.bukkit.plugin.java.JavaPlugin;
import ore.example.pokemoninfo.utils.CustomConfig;
import ore.example.pokemoninfo.command.info;

public final class Pokemoninfo extends JavaPlugin {
    private static CustomConfig pokemonPartyConfig;

    @Override
    public void onEnable() {
        // Plugin startup logic
        pokemonPartyConfig = new CustomConfig(this,"pokemonparty.yml");

        this.getCommand("pokemoninfo").setExecutor(new info());
        this.getCommand("tradeinfo").setExecutor(new Tradeinfo());
        this.getCommand("unlockpokemon").setExecutor(new Tradeinfo());

        getServer().getPluginManager().registerEvents(new PokemonInventoryListener(), this);

    }
    public static CustomConfig getPokemonPartyConfig() {
        return pokemonPartyConfig;
    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
    }
}
